package com.morn.fanfou;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.webkit.WebView;
import android.widget.TextView;

public class AboutActivity extends Activity {
	private static final String ABOUT_URL = "file:///android_asset/about/index.html";

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.about);
		TextView titleText = (TextView) findViewById(R.id.header_title_text);
		titleText.setText(R.string.about);

		WebView aboutView = (WebView) findViewById(R.id.about_webview);
		aboutView.loadUrl(ABOUT_URL);

	}

	public void clickLeftButton(View v) {
		this.finish();
	}

	public void clickRightButton(View v) {
		Intent intent = new Intent(this, MainActivity.class);
		intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
		startActivity(intent);
		finish();

	}
}
